import {get,post} from '../http/request.js'

/**
 * 
 * 部门API
 */

//建立树形图
export function buildTree(){
    return get('/dept/buildTree')
}

//添加部门
export function addDept(params){
    return post('/dept/addDept',params)
}

//根据部门名称删除部门
export function deleteDeptByName(params){
    return post('/dept/deleteDeptByName',params)
}

//查询所有部门
export function getAllDepts(){
    return get('/dept/getAllDepts')
}

//查找当前部门下的所有员工信息
export function getEmployeesUnderDept(params){
    return get('/dept/getEmployeesUnderDept',params)
}

//获取树高
export function getTreeHeight(){
    return get('/dept/getDeptTreeHeight')
}